From 45004d13d088f9a4b794d0fa345ea0715949c859 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 20 Dec 2005 19:31:34 +0000 Subject: [PATCH] Second part of set_include_path patch --- config/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/index.php b/config/index.php index 17a3c722fb..043c8d12be 100644 --- a/config/index.php +++ b/config/index.php @@ -1144,7 +1144,9 @@ function writeLocalSettings( $conf ) { # file, not there. \$IP = \"{$slconf['IP']}\"; -ini_set( \"include_path\", \".$sep\$IP$sep\$IP/includes$sep\$IP/languages\" ); +if( !ini_set( \"include_path\", \".$sep\$IP$sep\$IP/includes$sep\$IP/languages\" ) ) { + set_include_path( \".$sep\$IP$sep\$IP/includes$sep\$IP/languages\" ); +} require_once( \"includes/DefaultSettings.php\" ); # If PHP's memory limit is very low, some operations may fail. -- 2.20.1